import numpy as np

def rot45(im1):

	im = np.zeros(im1.shape)	
	im = im1
	aux1 = im[2][0]
	aux2 = im[0][0]
	aux3 = im[0][2]

	im[2][0] = im[1][0]
	im[1][0] = im[0][0]

	im[0][0] = im[0][1]
	im[0][1] = im[0][2]


	im[0][2] = im[1][2]
	im[1][2] = im[2][2]
	
	im[2][2] = im[2][1]
	im[2][1] = aux1

	return im
